home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 1999 #8 / 1999 CD 8 (black).iso / maskdemo / DATA1.CAB / Program_Executable_Files / Daventry / KQ / SPRGNBOW.CS < prev    next >
Encoding:
Text File  |  1998-12-15  |  6.4 KB  |  181 lines

  1. echo $1 $2 $3 $4 $5 $6 $7
  2. if test $2 == Cue
  3.    if test $3 == 10
  4.       KQMonster::checkInventory Connor Fists
  5.       if test $Console::Return == 1
  6.          sendEvent 0 $1 KQCueEvent 15 0
  7.       else
  8.          KQMonster::checkInventory Connor Dagger
  9.          if test $Console::Return == 1
  10.             set SBDoMode 4
  11.          endif
  12.          KQMonster::checkInventory Connor LakeSword
  13.          if test $Console::Return == 1
  14.             set SBDoMode 4
  15.          endif
  16.          KQMonster::checkInventory Connor SmallAx
  17.          if test $Console::Return == 1
  18.             set SBDoMode 0
  19.          endif
  20.  
  21.          KQMonster::stateChangeNotify $1 Connor
  22.            KQConner::getDoMode
  23.          if test $Console::Return != $SBDoMode
  24.               KQConner::setDoMode $SBDoMode
  25.          else
  26.             sprgnbow.cs $1 StateChange 0 32
  27.          endif
  28.       endif
  29.    else if test $3 == 15
  30.       move $1 0 1000 1000 -1 #get the kqobject out of the way for the animation
  31.       KQMonster::setHome $1 0 1000 1000
  32.       getEndLoop Connor $1 1
  33.       KQCamera::follow none
  34.        #setThirdPerson
  35.       handsOff 1
  36.  
  37.       # play different anin for different weapons
  38.       KQMonster::checkInventory Connor Dagger
  39.       if test $Console::Return == 1
  40.          move KQCamera 0 225343 183454 11956 0.4 0 -1.57
  41.          move Connor 0 224700 183000 -1 0 0 -1.57
  42.          preloadShape sp_dgdth.KQS
  43.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,dgone'
  44.       endif
  45.  
  46.       KQMonster::checkInventory Connor Fists
  47.       if test $Console::Return == 1
  48.          move KQCamera 0 224500 182968 8696 .8 0 -1.8
  49.          move Connor 0 224700 183000 -1 0 0 -1.57
  50.          preloadShape sp_ftdth.KQS
  51.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,hdone'
  52.       endif
  53.  
  54.       KQMonster::checkInventory Connor SmallAx
  55.       if test $Console::Return == 1
  56.          move KQCamera 0 224500 182968 8696 .8 0 -1.8
  57.          move Connor 0 224700 183000 -1 0 0 -1.57
  58.          preloadShape sp_cadth.KQS
  59.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,axone'
  60.       endif
  61.  
  62.       KQMonster::checkInventory Connor LakeSword
  63.       if test $Console::Return == 1
  64.          move KQCamera 0 224500 182968 8696 .8 0 -1.8
  65.          move Connor 0 225700 182500 8215 0 0 -1.57
  66.          preloadShape sp_lsdth.KQS
  67.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,lsone'
  68.       endif
  69.    else if test $3 == 20
  70.       KQConner::setDoMode 0
  71.       getEndLoop Connor $1 0
  72.       handsOff 0
  73.       setThirdPerson
  74.       KQCamera::follow Connor
  75.       sendEvent 0 Connor KQStatsChangeRequestEvent 0 0 0 0 50
  76.       KQMonster::speak Connor Connor 1000 105 59 114 1 1
  77.       KQObject::collision roofTrap -4
  78.       sendEvent 10 $1 KQCueEvent 30 0
  79.    else if test $3 == 30
  80.       deleteObject $1
  81.    else if test $3 == 300
  82.       # block for ax anims
  83.       if test $5 == axone
  84.          move KQCamera 0 230700 184068 13411 -0.1 0 2
  85.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,axtwo'
  86.       else if test $5 == axtwo
  87.          move KQCamera 0 225040 182616 9502 0 0 -1.57
  88.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,axthree'
  89.       else if test $5 == axthree
  90.          move KQCamera 0 224500 182968 8696 .8 0 -1.8
  91.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,axfour'
  92.       else if test $5 == axfour
  93.          move KQCamera 0 226841 182690 9520 0 0 1.57
  94.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,axfive'
  95.       else if test $5 == axfive
  96.          move KQCamera 0 224746 185184 9234 0 0 -2.7
  97.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,axsix,Inv,SmCrossBow'
  98.       else if test $5 == axsix
  99.          KQObject::getLoc Connor
  100.          loadObject deadsprg sp_cadth.kqs $KQObject::loc
  101.          move Connor 1 0 0 0 0 0 1.57
  102.          sendEvent 0 $1 KQCueEvent 20 0
  103.  
  104.       # block for dagger anims
  105.       else if test $5 == dgone
  106.          move KQCamera 0 224036 183728 8696 .8 0 -2.2
  107.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,dgtwo'
  108.       else if test $5 == dgtwo
  109.          move KQCamera 0 225664 185795 9323 0 0 3.14
  110.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,dgthree'
  111.       else if test $5 == dgthree
  112.          move KQCamera 0 225493 183817 9374 .1 0 2.2
  113.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,dgfour,Inv,SmCrossBow'
  114.       else if test $5 == dgfour
  115.          KQObject::getLoc Connor
  116.          loadObject deadsprg sp_dgdth.kqs $KQObject::loc
  117.          move Connor 1 0 0 0 0 0 1.57
  118.          sendEvent 0 $1 KQCueEvent 20 0
  119.  
  120.       # block for lake sword anims
  121.       else if test $5 == lsone
  122.          move KQCamera 0 225343 183454 11956 0.4 0 -1.57
  123.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,lstwo'
  124.       else if test $5 == lstwo
  125.          move KQCamera 0 224500 182968 8696 .8 0 -1.8
  126.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,lsthree'
  127.       else if test $5 == lsthree
  128.          move KQCamera 0 225664 185795 9323 0 0 3.14
  129.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,lsfour,Inv,SmCrossBow'
  130.       else if test $5 == lsfour
  131.          KQObject::getLoc Connor
  132.          loadObject deadsprg sp_lsdth.kqs $KQObject::loc
  133.          sendEvent 0 $1 KQCueEvent 20 0
  134.  
  135.       # block for fist anims
  136.       else if test $5 == hdone
  137.          move KQCamera 0 230700 184068 13411 -0.1 0 2
  138.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,hdtwo'
  139.       else if test $5 == hdtwo
  140.          move KQCamera 0 224746 185184 9234 0 0 -2.7
  141.          KQMonster::setState Connor Special 'AnimList=sprgnbow.anm,AnimListOn,hdthree,Inv,SmCrossBow'
  142.       else if test $5 == hdthree
  143.          KQObject::getLoc Connor
  144.          loadObject deadsprg sp_ftdth.kqs $KQObject::loc
  145.          move Connor 1 0 0 0 0 0 1.57
  146.          sendEvent 0 $1 KQCueEvent 20 0
  147.       endif
  148.       endif
  149.       endif
  150.       endif
  151.       endif
  152.  
  153.       endif
  154.       endif
  155.       endif
  156.       endif
  157.       endif
  158.  
  159.       endif
  160.       endif
  161.       endif
  162.       endif
  163.       endif
  164.  
  165.       endif
  166.       endif
  167.    endif
  168.    endif
  169.    endif
  170.    endif
  171.    endif
  172. else if test $2 == StateChange
  173.    if test $4 == 32
  174.         KQMonster::clearStateChangeNotify $1 Connor
  175.       sendEvent 0 $1 KQCueEvent 15 0
  176.    endif
  177. endif
  178. endif
  179.  
  180.  
  181.